#include "xgamestate.h"
#include "xgameengine.h"

XGameState::XGameState()
{
    //ctor
}

XGameState::~XGameState()
{
    //dtor
}

void XGameState::init(XGameEngine* pGame)
{

}

void XGameState::cleanup(XGameEngine* pGame)
{

}

void XGameState::pause(XGameEngine* pGame)
{

}

void XGameState::resume(XGameEngine* pGame)
{

}

void XGameState::handleEvent(XGameEngine* pGame)
{
    sf::Event event;
    while(pGame->getGameWindow().PollEvent(event))
    {
        // Request for closing the window
        if (event.Type == sf::Event::Closed)
            pGame->quit();
    }
}
